package com.hd.appcommon.entity.vo.db;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class ViewUserCredentialsDbVo implements Serializable {
    @TableId(value = "user_id", type = IdType.INPUT)
    private String userId;

    private String userName;

    private String userPhone;

    private String userAge;

    private Integer userGender;

    private String userIdCard;

    private String userIdCardPicFront;

    private String userIdCardPicBack;

    private String userFacePic;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date userCreateTime;

    /**
     * 用户身份（1临时、0正常住户）
     */
    private Integer userState;

    /**
     * 是否有效
     */
    private Integer isVilid;

    /**
     * 入住开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date liveBeginTime;

    /**
     * 入住结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date liveEndTime;

    private String locationId;

    private String userOpenId;

    private Integer userStatus;

    //-------------------------------------------
    private Long consultUserCredentialsId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date effectiveTime;

    /**
     * openid,phone,pw
     */
    private Integer credentialsSource;
    private Integer credentialsType;
    private String ip;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    private String token;

}
